package com.dawnling.countdownlistdemo.ui;

import java.io.Serializable;

public class OrderBean implements Serializable {
    public long delivery_countdown_time;// 倒计时时间
    public int id;

    public OrderBean(int id, long delivery_countdown_time) {
        this.id = id;
        this.delivery_countdown_time = delivery_countdown_time;
    }

    public void onReducePay() {
        delivery_countdown_time -= 1;
    }

    public void onReducePay(long time) {
        //这里传入的时间是毫秒单位 转为妙
        delivery_countdown_time -= time / 1000;
    }
}
